using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ShopItem : MonoBehaviour
{
    public Button btn;
    public Image icon;
    public Text num_text;
    public Text name_text;
    public GoodsData mydata;
    public void InitItem(GoodsData data)
    {
        mydata = data;
        icon.sprite=Resources.Load<Sprite>("UI/icon/"+ data.icon);
        name_text.text=data.name;
    }
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
